package com.siashan.toolkit.oss.aliyun;

import com.siashan.toolkit.oss.aliyun.core.AliyunOssStorageService;
import com.siashan.toolkit.oss.core.OssStorageService;

/**
 * 阿里云工厂类
 *
 * @author siashan
 * @since v1.0.1
 **/
public class AliyunOssFactoryProvider {

    private AliyunOssProperties aliyunOssProperties;


    public AliyunOssFactoryProvider(AliyunOssProperties aliyunOssProperties) {
        this.aliyunOssProperties = aliyunOssProperties;
    }


    /**
     * 获取存储服务类
     *
     * @return 阿里云Oss存储服务类
     */
    public OssStorageService getStoreageService() {
        return new AliyunOssStorageService(aliyunOssProperties.getConfig());
    }

}
